local app = require "app"
local blaze = require "blaze"
local gamelib = require "club.threecard.gamelib"
local pokerlib = require "club.threecard.pokerlib"
local entrance = require "club.threecard.blackjack.overried_entrance.entrances"
local package = "club.threecard.blackjack"

local game = gamelib.game.new({
    package = package,
    pokerlib = pokerlib,
    gamelib = gamelib,

    on_start = function(self)
        gamelib.game_scene.overried_entrance(entrance);
        self.kbe.register("BlackjackPlayer")
        self.kbe.register("BlackjackRoom")
        self.kbe.register("Seat")
        self.ui.init_routes()
    end,
    on_started = function(self)
        self.audio.post("blackjack:background");
        if self.reconnection.fast_resume() then
            return
        end
        self.router.go("/club.threecard.blackjack/entrance")
    end
})
return game